package com.ytc.search.service;

import com.ytc.commons.model.dto.CoursePubIndexDto;
import com.ytc.commons.model.dto.PageRequest;
import com.ytc.commons.model.vo.CoursePubIndexVo;
import com.ytc.commons.model.vo.PageResponseResult;
import com.ytc.commons.model.vo.ResponseResult;

public interface SearchService {
    //课程搜索
    PageResponseResult<CoursePubIndexVo> search(CoursePubIndexDto dto, PageRequest request)throws Exception;

    //同步更新索引
    void updateIndex(Long coursePubId)throws Exception;

    //根据id查询课程发布数据
    ResponseResult<CoursePubIndexVo> findById(Long id)throws Exception;
}
